import request from '@/utils/request'

// 查询商品介绍详情列表
export function listDesc(gNumber) {
  return request({
    url: '/goods/desc/list/' + gNumber,
    method: 'get',
  })
}

// 查询商品介绍详情详细
export function getDesc(descId) {
  return request({
    url: '/goods/desc/' + descId,
    method: 'get'
  })
}

// 新增商品介绍详情
export function addDesc(data) {
  return request({
    url: '/goods/desc',
    method: 'post',
    data: data
  })
}

// 修改商品介绍详情
export function updateDesc(data) {
  return request({
    url: '/goods/desc',
    method: 'put',
    data: data
  })
}

// 删除商品介绍详情
export function delDesc(descId) {
  return request({
    url: '/goods/desc/' + descId,
    method: 'delete'
  })
}
